Skip to content

Registry Analysis using Registry Explorer, ShellBags Explorer, and RegRipper

๐ŸŽฏ General Introduction

When dealing with a suspect device in a digital forensic context, we often extract registry hive files to analyze user and system behavior. Since we donโ€™t work directly on the live system, we cannot use Regedit.

โš ๏ธ Why can't we use Regedit?

  • Regedit only reads from the current system.

  • It cannot be pointed to read standalone .dat or .hiv files.

  • Therefore, we must use tools that support analyzing Offline Registry Files.


๐Ÿงฐ Required Tools

To address this, we use specialized tools to analyze registry files extracted from the target system. The main tools include:

๐Ÿ› ๏ธ Tool ๐Ÿ“Œ Function ๐Ÿงพ Supported Files ๐Ÿ’ก Notable Features
Registry Explorer Manual Analysis All Hive Files Supports deleted keys, transaction logs, read-only
ShellBags Explorer User activity analysis NTUSER.DAT, USRCLASS.DAT Extracts folder and device history
RegRipper Automated analysis reports All files Works via CLI/GUI, uses built-in plugins

๐Ÿ“‚ First: Registry Explorer

โœ… Introduction

  • Developed by Eric Zimmerman, a SANS instructor with significant contributions to forensic tools.

  • Offers an interface similar to Regedit but supports independent registry files.

๐Ÿ” Additional Features:
  • Displays deleted keys and values

  • Advanced search support

  • Displays timestamp (Last Written Time) for each key

  • Read-only support (ideal for forensics)

๐Ÿ“ฅ Download Tool

Can be downloaded from the SANS site or Eric Zimmermanโ€™s Tool List

๐Ÿ’ป Use Cases:

  • When you need to browse registry keys manually.

  • Extracting data such as:

  • Network information

  • Installed software

  • Startup settings

  • Last Write Time

๐Ÿ› ๏ธ Usage Steps:

  1. Download the toolโ€”it comes as a ZIP file.

  2. After extraction, ensure you have .NET Framework 4.0 installed.

  3. The interface resembles Regedit, but you can manually select an offline registry hive file.


๐Ÿงช Registry File Analysis Steps

Dirty Hive Issue:

When opening files like NTUSER.DAT or SOFTWARE, a message may appear:

"The hive appears to be dirtyโ€ฆ transaction logs missing."

Solution via FTK Imager:

  • Open FTK Imager

  • Navigate to NTUSER.DAT

Extract the hive along with .LOG1, .LOG2, and .BLF files

  • Export them into a working directory:

โœ… Result:

  • Dirty Hive issue resolved.

  • Tool accurately displays all keys and values.

  • You can search the registry for any key.

๐Ÿ“Œ Benefit:

  • Once loaded successfully, you can view all keys and values as if inside Regedit and easily search.

  • Go back to Registry Explorer and reload the hive with logs.

- **Associated deleted records**  
  Deleted records still linked to a known key โ€” here, total is **0**.

- **Unassociated deleted records**  
  Deleted records not linked to any active key โ€” total is also **0**.

- **Unassociated deleted values**  
  Deleted values not associated with any key.

Manual searching can be tedious, so we move on to complementary tools.


๐Ÿงณ Second: ShellBags Explorer

โœ… What are ShellBags?

ShellBags are keys inside NTUSER.DAT and USRCLASS.DAT used to track:

  • Folders browsed by the user

  • View mode (Details/List/Icons)

  • Last viewed timestamps

  • Connected device names

  • MRU (Most Recently Used) entries


๐Ÿ› ๏ธ Usage Steps:

  1. Download ShellBags Explorer from Eric Zimmermanโ€™s site.

  2. Requires .NET Framework.

  3. When launched, you can:

  4. Analyze live registry (your current system)

  5. Or select an offline hive such as NTUSER.DAT or USRCLASS.DAT


โš ๏ธ Note:

  • If you open files like SAM or SYSTEM, you will see an error such as:

"No MRU Bags found" or "Not a valid ShellBag Hive"

  • Reason: ShellBags Explorer is specifically designed to analyze ShellBag-related registry keys, which exist only in NTUSER.DAT, USRCLASS.DAT.

  • Files like: SAM, SYSTEM, SECURITY contain completely different info such as user data, encrypted passwords, system settings, etc. They donโ€™t include Shell\BagMRU or Shell\Bags keys.

  • Opening an unsupported file like SAM or SYSTEM leads the tool to not find expected keys, hence the error message.


๐Ÿ“ Notes:

  • Only works with: NTUSER.DAT, USRCLASS.DAT

  • Opening SAM or SYSTEM shows no ShellBags data.


๐Ÿ’ก Example:

  • Opened NTUSER.DAT of user โ€œAhmedโ€.

  • Dirty files were detected and handled using log files.

  • Data shown includes:

  • Connected devices like IronMan, BumbleBee

  • Folders browsed such as SANS, iLearn Security, Work

  • Search keywords like forensics, Digital Forensics for Linux, etc.

Image taken from course lab project because nothing useful appeared when I tested this part on my own system.


๐Ÿ” Third: RegRipper

โœ… Introduction

RegRipper is a powerful tool that performs automated analysis of registry hives using pre-built plugins.\ It works on both Windows and Linux and comes in two versions:

  • Command Line => rip.exe

  • GUI (Graphical Interface) => rr.exe


๐Ÿ“ฅ Download Tool
  • Available on GitHub

  • Download as ZIP and extract.


๐Ÿ› ๏ธ Usage Steps:

GUI Version:

  1. Launch the tool and select the hive to analyze (e.g. SYSTEM, NTUSER.DAT)

  2. Choose the report output location (e.g. Reports folder)

  3. Click "Rip it" to begin analysis


CLI Version:

  • Run rip.exe

  • Specify the desired plugin and hive file:

rip.exe -r C:\Hive\NTUSER.DAT -f userassist > report.txt

๐Ÿงพ Example Output:

  • System info:

  • Boot settings

  • Backup/Restore info

  • List of programs launched

  • System usage timeline


๐Ÿงพ Output Format:

  • .txt reports with detailed analysis based on plugins

  • Easy to read via Notepad++ or grep (Linux)

๐Ÿ“ธ Example report format:


๐Ÿ’ก Example Plugins:

  • userassist โ†’ Opened programs

  • services โ†’ Active system services

  • networklist โ†’ Connected networks

  • appcompatcache โ†’ Recently executed applications


๐Ÿง  Important Tips During Analysis

Tip Explanation
๐Ÿ” Extract hives with all associated files Especially .LOG1, .LOG2, .BLF to avoid Dirty Hive issues
๐Ÿงช Never work on original files Always work on a copy of the files
๐Ÿงฐ Use tools together Use Registry Explorer for manual search, ShellBags for user history, RegRipper for quick reports
๐Ÿ•ต๏ธ Search in multiple places Sometimes data is in USRCLASS.DAT not just NTUSER.DAT
๐Ÿ“„ Document everything Include notes, timestamps, and findings in separate logs for review

โœ… Summary

Tool Main Function File Types Primary Uses
Registry Explorer Manual browsing and full analysis All hives Key/value analysis, deleted data recovery
ShellBags Explorer User activity tracking NTUSER & USRCLASS Device, folder, and timestamp tracing
RegRipper Automated detailed reports All hives Comprehensive analysis via multiple plugins